import { AssetManager } from "cc";
import SystemBase from "./system/SystemBase";
import NGameMessage from "./util/NGameMessage";
export enum Env{
    WEB,WX,
}

export interface JNGameMessage{
    path: string;
    res?: AssetManager.Bundle;
}

export class JNGame {

    private static env:Env = Env.WEB;

    static async Init(data:{}){
        
        //初始化
        for (const key of Object.keys(data)) {
            if(data[key] instanceof SystemBase){
                await data[key].onInit();;
            }
            console.log(key);
        }
        
    }
    
}
